package com.gezhi.stuserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *  定义为一个Eureka客户端（@EnableEurekaClient）;
 *  启用Feign客户端（@EnableFeignClients）;
 *  允许使用熔断功能（@EnableCircuitBreaker）
 *
 * @author AWG
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableCircuitBreaker
public class StuServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(StuServerApplication.class, args);
    }

}
